package com.lovo.dao;

import com.lovo.entity.OrderEntity;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface IOrderDao extends CrudRepository<OrderEntity,Long> {
    public List<OrderEntity> findAllByUserName(String userName);

    public OrderEntity findDistinctFirstByOrderCode(String orderCode);

}
